package com.wangxin.study8.singleton;

/**
 * @ClassName StaticInnerClassSingleton
 * @Description 静态内部类
 * @Author jojo.wang
 * @Date 2019-05-21 11:17
 * @Version 1.0
 **/
public class StaticInnerClassSingleton {
    private static class handler{
        private static StaticInnerClassSingleton staticInnerClassSingleton = new StaticInnerClassSingleton();
    }
    private StaticInnerClassSingleton(){}

    public static StaticInnerClassSingleton getInstance(){
        return handler.staticInnerClassSingleton;
    }
}
